<template>
  <van-goods-action>
    <van-goods-action-icon icon="chat-o" text="客服" @click="onClickIcon" />
    <van-goods-action-icon icon="cart-o" text="购物车" @click="onClickIcon" />
    <van-goods-action-icon icon="shop-o" text="店铺" @click="onClickIcon" />
    <van-goods-action-button
      type="warning"
      text="加入购物车"
      @click="onClickButton"
    />
    <van-goods-action-button type="danger" text="立即购买" />
  </van-goods-action>
</template>

<script>
import { Toast } from "vant"

export default {
  name: "Detail_bottombar",
  methods: {
    onClickIcon() {
      Toast("此功能尚未开放")
    },
    onClickButton() {
      Toast("添加购物车成功")

      this.$emit("addcart")
    },
  },
}
</script>

<style></style>
